package com.alex;

public class TestMemory02 {

    public static void main(String[] args) {
        long maxMemory = Runtime.getRuntime().maxMemory();
        long totalMemory = Runtime.getRuntime().totalMemory();

        System.out.println(maxMemory/1024/1024);
        System.out.println(totalMemory/1024/1024);
    }
}
